-
-
Notifications
You must be signed in to change notification settings - Fork 239
Prometheus Exporter - added total energy & auto cleanup, renamed Exports #1007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@cianc |
Added auto cleanup after shutdown from push gateway Renamed attributes
3fe1ccb to
e8419c3
Compare
Co-authored-by: cianc <[email protected]>
|
Hello, I've:
Is it ok for you ? |
|
Thanks for your help. The changes you make look fine for me. |
|
It will take couple of days to clear out jobs running with another branch, but until now everything that was running this branch worked fine. I have no objections to merging this. |
benoit-cty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thank you !
Description
Added auto cleanup after shutdown from push gateway
Renamed several attributes and fixed kw to kwh
Added total power to avoid race conditions with push gateway and prometheus crawler
Related Issue
Implemented #975
Motivation and Context
Race conditions between push gateway updates and crawling via promethus accumulate over time and skew the total over time
Push gateway does not automatically remove entries after termination of the program, therefore the last value is kept until manually removed. For cluster environments this is not feasible
How Has This Been Tested?
The changes are extracted from the fork currently running in our cluster environment and we monitor the jobs with grafana
I am currently investigating methods to improve the autoclean
Types of changes
What types of changes does your code introduce? Put an
xin all the boxes that apply:Checklist:
Go over all the following points, and put an
xin all the boxes that apply.